package model

func migration() {
	DB.Set("gorm:table_options", "charset=utf8mb4")
	err := DB.AutoMigrate(&User{}, &Task{})

	if err != nil {
		panic(err)
	}
	//DB.Model(&Task{}).AddForeignKey("uid", "User(id)", "CASCADE", "CASCADE")
}
